#ifndef MYTHREAD_H
#define MYTHREAD_H

#include <QObject>


//生成随机数的任务
class Task1 : public QObject
{
    Q_OBJECT
public:
    explicit Task1(QObject *parent = nullptr);

    void working(int n);

signals:
    void sendArray(QVector<int>);

private:
    QVector<int> _v;
};




class Task2 : public QObject
{
    Q_OBJECT
public:
    explicit Task2(QObject *parent = nullptr);

    void working(QVector<int> v);

signals:
    void sendArray(QVector<int>);
};


class Task3 : public QObject
{
    Q_OBJECT
public:
    explicit Task3(QObject *parent = nullptr);

    void working(QVector<int> v);

    void InsertSort(QVector<int>& a,  int n);

signals:
    void sendArray(QVector<int>);
};


#endif // MYTHREAD_H
